<%@ page import="com.conversationboard.model.*" %>
<%@ page import="com.conversationboard.view.*" %>
<%@ page import="com.conversationboard.config.*" %>
<%@ page import="com.conversationboard.model.*" %>
<%@ page import="java.security.Principal" %>
<%@ page import="java.util.*" %>
<%@ page import="com.conversationboard.controller.confirm.Confirm" %>

<%@page pageEncoding="UTF-8"%>
<%@page contentType="text/html;charset=UTF-8"%>

<%
    Principal principal = request.getUserPrincipal();
    String userName = null;
    
    if (principal!=null) {
    	userName = principal.getName();
    }
   
 	User user = User.get(userName);
%>


<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>Remove a User</title>
		<link rel="stylesheet" type="text/css" href="<%=Configuration.getInstance().getRoot()%>/Stylesheets/<%=StyleSheets.getStyleSheetFileName(request.getCookies())%>"/>
	</head>

	<body>
	
		<%= MainMenu.display(request.getUserPrincipal()) %>

		<div class="headingblock">
			<h1>Remove a User</h1>
		</div>

		<div class="mainblock">
			

			<form class="formsection" action="<%=Configuration.getInstance().getRoot()%>/Admin/AdminRemoveUserControllerServlet" method="post">

				<p>Enter a user's login ID and it will be removed from the database and the cache.<p>
	
			 	<%= Confirm.getKey(request.getUserPrincipal().getName()) %>
			 	<label for="loginid">User ID:</label>
			 	<input name="loginid" class="smalltextbox" type="text" size=100 /><br /><br />
			 	<input type="submit" value="Remove User" />
		
			</form>

		</div>

		<!--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>-->
		<!--<script type="text/javascript">_uacct = "UA-1148679-1";urchinTracker();</script>--> 

	</body>
	
</html>
